/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

import djhu.xml.commons.RootElement;
import djhu.xml.commons.XMLObject;
import java.io.Serializable;
import java.sql.Date;
/**
 *
 * @author wudihua
 */
@RootElement(path = "/ProcedureRequest")
public class ProcedureRequestBean implements Serializable{

    @XMLObject(xpath = "./id/@value", ntype = XMLObject.ATTRIBUTE)
    private String prId;

    //状态
    @XMLObject(xpath = "./status/@value", ntype = XMLObject.ATTRIBUTE)
    private String status;

    //目的
    @XMLObject(xpath = "./intent/@value", ntype = XMLObject.ATTRIBUTE)
    private String intent;

    //检查项目标识
    @XMLObject(xpath = "./id/@value", ntype = XMLObject.ATTRIBUTE)
    private String inspectCode;

    //检查项目名称
    @XMLObject(xpath = "./code/coding/code/@value", ntype = XMLObject.ATTRIBUTE)
    private String inspectName;

    //关联患者
    private String refPatient;
    //关联患者名称；
    @XMLObject(xpath = "./code/coding/display/@value", ntype = XMLObject.ATTRIBUTE)
    private String relationPatient;

    //关联就诊
    private String refencounter;
    
    //预定检查时间+日期 2018-05-02T09:00:00+07:00
    @XMLObject(xpath = "./occurrenceDateTime/@value", ntype = XMLObject.ATTRIBUTE)
    private String occurrenceDateTime;

    //预定检查日期	2018-05-02
    private String occurrenceDate;

    //预定检查时间	09:00:00
    private String occurrenceTime;

    //申请时间 + 日期	2018-05-01T10:33:27+07:00
    @XMLObject(xpath = "./authoredOn/@id", ntype = XMLObject.ATTRIBUTE)
    private String authoredOn;

    //申请日期		2018-05-01
    private String authoredDate;

    //申请时间		10:33:27
    private String authoredTime;

    // 更新时间
    private Date updateTime;

    //关联医生
    private String refDcotor;
    //申请医生
    @XMLObject(xpath = "./requester/agent/display/@value", ntype = XMLObject.ATTRIBUTE)
    private String applyDoctor;

    //申请原因
    @XMLObject(xpath = "./reasonCode/text/@value", ntype = XMLObject.ATTRIBUTE)
    private String reasonCode;

    //检查部位标识
    @XMLObject(xpath = "./bodySite/coding/code/@value", ntype = XMLObject.ATTRIBUTE)
    private String applyCode;

    //检查位置
    @XMLObject(xpath = "./bodySite/coding/display/@value", ntype = XMLObject.ATTRIBUTE)
    private String applyPosition;

    //删除状态
    private String deleteStatus;

    //更新状态
    private String updateStatus;

    //版本号，默认创建为1，执行更新操作，依次增加
    private String versionNumber;

    public String getRefPatient() {
        return refPatient;
    }

    public void setRefPatient(String refPatient) {
        this.refPatient = refPatient;
    }

    public String getRefencounter() {
        return refencounter;
    }

    public void setRefencounter(String refencounter) {
        this.refencounter = refencounter;
    }

    public String getRefDcotor() {
        return refDcotor;
    }

    public void setRefDcotor(String refDcotor) {
        this.refDcotor = refDcotor;
    }

    
    
    

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getPrId() {
        return prId;
    }

    public void setPrId(String prId) {
        this.prId = prId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIntent() {
        return intent;
    }

    public void setIntent(String intent) {
        this.intent = intent;
    }

    public String getInspectCode() {
        return inspectCode;
    }

    public String getVersionNumber() {
        return versionNumber;
    }

    public void setVersionNumber(String versionNumber) {
        this.versionNumber = versionNumber;
    }

    public void setInspectCode(String inspectCode) {
        this.inspectCode = inspectCode;
    }

    public String getInspectName() {
        return inspectName;
    }

    public void setInspectName(String inspectName) {
        this.inspectName = inspectName;
    }

    public String getRelationPatient() {
        return relationPatient;
    }

    public void setRelationPatient(String relationPatient) {
        this.relationPatient = relationPatient;
    }

    public String getOccurrenceDateTime() {
        return occurrenceDateTime;
    }

    public void setOccurrenceDateTime(String occurrenceDateTime) {
        this.occurrenceDateTime = occurrenceDateTime;
    }

    public String getOccurrenceDate() {
        return occurrenceDate;
    }

    public void setOccurrenceDate(String occurrenceDate) {
        this.occurrenceDate = occurrenceDate;
    }

    public String getOccurrenceTime() {
        return occurrenceTime;
    }

    public void setOccurrenceTime(String occurrenceTime) {
        this.occurrenceTime = occurrenceTime;
    }

    public String getAuthoredOn() {
        return authoredOn;
    }

    public void setAuthoredOn(String authoredOn) {
        this.authoredOn = authoredOn;
    }

    public String getAuthoredDate() {
        return authoredDate;
    }

    public void setAuthoredDate(String authoredDate) {
        this.authoredDate = authoredDate;
    }

    public String getAuthoredTime() {
        return authoredTime;
    }

    public void setAuthoredTime(String authoredTime) {
        this.authoredTime = authoredTime;
    }

    public String getApplyDoctor() {
        return applyDoctor;
    }

    public void setApplyDoctor(String applyDoctor) {
        this.applyDoctor = applyDoctor;
    }

    public String getReasonCode() {
        return reasonCode;
    }

    public void setReasonCode(String reasonCode) {
        this.reasonCode = reasonCode;
    }

    public String getApplyCode() {
        return applyCode;
    }

    public void setApplyCode(String applyCode) {
        this.applyCode = applyCode;
    }

    public String getApplyPosition() {
        return applyPosition;
    }

    public void setApplyPosition(String applyPosition) {
        this.applyPosition = applyPosition;
    }

    public String getDeleteStatus() {
        return deleteStatus;
    }

    public void setDeleteStatus(String deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    public String getUpdateStatus() {
        return updateStatus;
    }

    public void setUpdateStatus(String updateStatus) {
        this.updateStatus = updateStatus;
    }

    public ProcedureRequestBean() {
    }

    public ProcedureRequestBean(String prId, String status, String intent, String inspectCode, String inspectName, String relationPatient, String occurrenceDateTime, String occurrenceDate, String occurrenceTime, String authoredOn, String authoredDate, String authoredTime, String applyDoctor, String reasonCode, String applyCode, String applyPosition) {
        this.prId = prId;
        this.status = status;
        this.intent = intent;
        this.inspectCode = inspectCode;
        this.inspectName = inspectName;
        this.relationPatient = relationPatient;
        this.occurrenceDateTime = occurrenceDateTime;
        this.occurrenceDate = occurrenceDate;
        this.occurrenceTime = occurrenceTime;
        this.authoredOn = authoredOn;
        this.authoredDate = authoredDate;
        this.authoredTime = authoredTime;
        this.applyDoctor = applyDoctor;
        this.reasonCode = reasonCode;
        this.applyCode = applyCode;
        this.applyPosition = applyPosition;
    }

    @Override
    public String toString() {
        return "ProcedureRequestBean{" +
                "prId='" + prId + '\'' +
                ", status='" + status + '\'' +
                ", intent='" + intent + '\'' +
                ", inspectCode='" + inspectCode + '\'' +
                ", inspectName='" + inspectName + '\'' +
                ", relationPatient='" + relationPatient + '\'' +
                ", occurrenceDateTime='" + occurrenceDateTime + '\'' +
                ", occurrenceDate='" + occurrenceDate + '\'' +
                ", occurrenceTime='" + occurrenceTime + '\'' +
                ", authoredOn='" + authoredOn + '\'' +
                ", authoredDate='" + authoredDate + '\'' +
                ", authoredTime='" + authoredTime + '\'' +
                ", applyDoctor='" + applyDoctor + '\'' +
                ", reasonCode='" + reasonCode + '\'' +
                ", applyCode='" + applyCode + '\'' +
                ", applyPosition='" + applyPosition + '\'' +
                ", deleteStatus='" + deleteStatus + '\'' +
                ", updateStatus='" + updateStatus + '\'' +
                '}';
    }
}
